package com.chang.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @program: shop-cloud
 * @description:
 * @author: chang
 * @create: 2025-04-10 15h
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("接口统一返回数据")
public class ResultBean<T>{
    @ApiModelProperty("状态码200 正常，0 失败")
    int code;

    @ApiModelProperty("接口返回信息描述")
    String msg;

    @ApiModelProperty("接口返回数据")
    T data;

}
